/*
 * @Date: 2022-03-24 18:30:34
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-03-29 19:10:56
 * @FilePath: \vue3Components\src\router\index.ts
 * @Description: 路由
 */
import { createWebHistory, RouteRecordRaw, createRouter } from "vue-router";
const routes: RouteRecordRaw[] = [
  {
    path: "/",
    component: () => import("../components/Container/Container.vue"),
    children: [
      {
        path: "/",
        name: "home",
        component: () => import("../views/Home.vue"),
      },
      {
        path: "/chooseicons",
        name: "chooseIcons",
        component: () => import("../views/chooseIcons.vue"),
      },
      {
        path: "/choosearea",
        name: "chooseArea",
        component: () => import("../views/chooseArea.vue"),
      },
      {
        path: "/choosetime",
        name: "chooseTime",
        component: () => import("../views/choosetimetest.vue"),
      },
      {
        path: "/choosecity",
        name: "chooseCity",
        component: () => import("../views/choosecitytest.vue"),
      },
      {
        path: "/trend",
        name: "Trend",
        component: () => import("../views/trend.vue"),
      },
      {
        path: "/notification",
        name: "Notification",
        component: () => import("../views/notification.vue"),
      },
      {
        path: "/progress",
        name: "Progress",
        component: () => import("../views/progresstest.vue"),
      },
      {
        path: "/menu",
        name: "Menu",
        component: () => import("../views/menutest.vue"),
      },
      {
        path: "/form",
        name: "Form",
        component: () => import("../views/formtest.vue"),
      },
      {
        path: "/openform",
        name: "openForm",
        component: () => import("../views/openformtest.vue"),
      },
      {
        path: "/table",
        name: "Table",
        component: () => import("../views/tabletest.vue"),
      },
      {
        path: "/calendar",
        name: "Calendar",
        component: () => import("../views/calendartest.vue"),
      },
    ],
  },
];
const router = createRouter({
  routes,
  history: createWebHistory(),
});
export default router;
